package edu.fpa.day0720;

public class OBO03 {
    public static void main(String [] args){
        comp c1=new comp();
        c1.Brand="HUAWEI";

        StuMes stu1=new StuMes();
        stu1.computer =c1;
        stu1.Study();

    }
}
class StuMes{
    //属性
    int Age;
    String Name;
    comp computer;
    //方法
    void Study(){
        System.out.println("我正在学习"+computer.Brand);
    }
}
class comp{
   //属性
   String Brand;
}
